package database.domain;

import common.Message;
import database.DAO.OfflineMessageDAO;

import java.io.Serial;
import java.io.Serializable;

public class OfflineMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = -7220208674603157907L;
    private Integer id;
    private Message message;

    public OfflineMessage() {
    }

    public OfflineMessage(Integer id, Message message) {
        this.id = id;
        this.message = message;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "OfflineMessage{" +
                "id=" + id +
                ", message=" + message +
                '}';
    }
}
